package com.ruoyi.system.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 组织机构表 sys_org
 * 
 * @author ruoyi
 * @date 2020-02-12
 */
public class Org extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/**  */
	private Long id;
	/** code */
	private String code;
	/** 名称 */
	private String name;
	/**  */
	private String parentCode;
	/**  */
	private String parentName;
	/**  */
	private String description;
	/**  */
	private String deleted;
	/**  */
	private String createDate;
	/**  */
	private String lastUpdateDate;
	/**  */
	private String serialNum;
	/**  */
	private String oldParentCode;
	/**  */
	private String oldParentName;

	/** 子菜单 */
	private List<Org> children = new ArrayList<Org>();

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setCode(String code) 
	{
		this.code = code;
	}

	public String getCode() 
	{
		return code;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}
	public void setParentCode(String parentCode) 
	{
		this.parentCode = parentCode;
	}

	public String getParentCode() 
	{
		return parentCode;
	}
	public void setParentName(String parentName) 
	{
		this.parentName = parentName;
	}

	public String getParentName() 
	{
		return parentName;
	}
	public void setDescription(String description) 
	{
		this.description = description;
	}

	public String getDescription() 
	{
		return description;
	}
	public void setDeleted(String deleted) 
	{
		this.deleted = deleted;
	}

	public String getDeleted() 
	{
		return deleted;
	}
	public void setCreateDate(String createDate) 
	{
		this.createDate = createDate;
	}

	public String getCreateDate() 
	{
		return createDate;
	}
	public void setLastUpdateDate(String lastUpdateDate) 
	{
		this.lastUpdateDate = lastUpdateDate;
	}

	public String getLastUpdateDate() 
	{
		return lastUpdateDate;
	}
	public void setSerialNum(String serialNum) 
	{
		this.serialNum = serialNum;
	}

	public String getSerialNum() 
	{
		return serialNum;
	}
	public void setOldParentCode(String oldParentCode) 
	{
		this.oldParentCode = oldParentCode;
	}

	public String getOldParentCode() 
	{
		return oldParentCode;
	}
	public void setOldParentName(String oldParentName) 
	{
		this.oldParentName = oldParentName;
	}

	public String getOldParentName() 
	{
		return oldParentName;
	}

	public List<Org> getChildren() {
		return children;
	}

	public void setChildren(List<Org> children) {
		this.children = children;
	}

	public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("parentCode", getParentCode())
            .append("parentName", getParentName())
            .append("description", getDescription())
            .append("deleted", getDeleted())
            .append("createDate", getCreateDate())
            .append("lastUpdateDate", getLastUpdateDate())
            .append("serialNum", getSerialNum())
            .append("oldParentCode", getOldParentCode())
            .append("oldParentName", getOldParentName())
            .toString();
    }
}
